# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=kippo
pkgver=287.b9eb06a
pkgrel=3
pkgdesc='A medium interaction SSH honeypot designed to log brute force attacks and most importantly, the entire shell interaction by the attacker.'
groups=('blackarch' 'blackarch-honeypot')
arch=('any')
url='https://github.com/desaster/kippo'
license=('GPL')
depends=('python2' 'python2-twistedx' 'python2-pycryptodome' 'python2-pyasn1')
makedepends=('git')
source=("git+https://github.com/desaster/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname/"

  cp -r * "$pkgdir/usr/share/$pkgname/"

  cd "$pkgdir/usr/share/$pkgname"

  ln -sf "$pkgname.cfg.dist" "$pkgname.cfg"
}

